package com.imooc.framework.test;

public class StaticCode {
    public static int count = 0;
    {
        count++;
        System.out.println("非静态代码块 count=" + count);
    }
    static {
        count++;
        System.out.println("静态代码块1 count=" + count);
    }
    static {
        count++;
        System.out.println("静态代码块2 count=" + count);
    }

    public static void main(String[] args) throws InterruptedException {
//        System.out.println("*************** StaticCode1 执行 ***************");
//        Thread.sleep(5000);
//        StaticCode sct1 = new StaticCode();
//        System.out.println("*************** StaticCode2 执行 ***************");
//        StaticCode sct2 = new StaticCode();
    }
}
